<style>
    table tr > th, table tr > td {
        text-align: center;
        vertical-align: middle !important;
    }
</style>
<div>
    <div class="statistic-box bg-success m-bottom-md" style="margin: 0;padding: 5px;border-radius: 0;">
        <div class="statistic-title">
            {{ schoolName }}
        </div>
    </div>
    <div class="statistic-icon-background">
        <i class="ion-eye"></i>
    </div>
    <table class="table table-hover">
        {% if reverse %}
            <tr class="info">
                <th>科目</th>
                <th>班级</th>
                <th>布置次数</th>
                {#<th>人均作业时间</th>#}
                <th>上交率</th>
                <th>批改份数</th>
                <th>批改率</th>
                {#<th>二次批改率</th>#}
                <th>二次批改次数</th>
            </tr>
            {% for rows in data %}
                {% for row in rows %}
                    <tr>
                        {% if loop.first %}
                            <td rowspan="{{ rows|length }}">{{ row['subjectName'] }}</td>
                        {% endif %}
                        <td>{{ row['className'] }}</td>
                        <td>{{ row['taskFixNum'] }}</td>
                        {#<td>{{ row['taskTimeCostAvg'] }}</td>#}
                        <td>{{ row['uploadRate'] }}%</td>
                        <td>{{ row['taskCorrectNum'] }}</td>
                        <td>{{ row['correctRate'] }}%</td>
                        {#<td>{{ row['correctEmendRate'] }}%</td>#}
                        <td>{{ row['taskCorrectEmendNum'] }}</td>
                    </tr>
                {% endfor %}
            {% endfor %}
        {% else %}
            <tr class="info">
                <th>班级</th>
                <th>科目</th>
                <th>布置次数</th>
                {#<th>人均作业时间</th>#}
                <th>上交率</th>
                <th>批改份数</th>
                <th>批改率</th>
                {#<th>二次批改率</th>#}
                <th>二次批改次数</th>
            </tr>
            {% for rows in data %}
                {% for row in rows %}
                    <tr>
                        {% if loop.first %}
                            <td rowspan="{{ rows|length }}">{{ row['className'] }}</td>
                        {% endif %}
                        <td>{{ row['subjectName'] }}</td>
                        <td>{{ row['taskFixNum'] }}</td>
                        {#<td>{{ row['taskTimeCostAvg'] }}</td>#}
                        <td>{{ row['uploadRate'] }}%</td>
                        <td>{{ row['taskCorrectNum'] }}</td>
                        <td>{{ row['correctRate'] }}%</td>
                        {#<td>{{ row['correctEmendRate'] }}%</td>#}
                        <td>{{ row['taskCorrectEmendNum'] }}</td>
                    </tr>
                {% endfor %}
            {% endfor %}
        {% endif %}
    </table>
</div>